package com.joysuch.wwyt.alert.service;

import com.joysuch.wwyt.alert.result.response.GeTuiAuthResponse;
import com.joysuch.wwyt.core.exception.ApiCoreException;

import java.util.Set;


public interface AlertMessageService {

    /**
     * 获取个推Token
     * @return
     * @throws ApiCoreException
     */
    GeTuiAuthResponse getGeTuiToken() throws ApiCoreException;

    /**
     * 从缓存获取Token
     * @return
     */
    String getTokenFromCache() throws ApiCoreException;

    /**
     * 消息推送
     * @param userIds
     * @param title
     * @param body
     * @return
     */
    boolean pushSingleBatchCid(Set<Long> userIds, String title, String body, Long triggerId, Boolean buildName);
}
